package model;

import java.io.Serializable;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name = "group")
public class Group extends Link implements Serializable
{
	private static final long serialVersionUID = 7279050628531098897L;

	private static int i = 0;
	
	@XmlAttribute
	private String id = "";
	
	@XmlAttribute
	private String name;
	
	public Group() {}
	
	public Group(String name)
	{
		i++;
		this.id = i + "";
		this.name = name;
	}
	
	public String toString()
	{
		return "Group id(" + id + ") -> Name: " + name;
	}

	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getName()
	{
		return name;
	}
}
